package com.inno.auth.controller.convert;

import com.inno.auth.domain.entity.PlannerUsersBO;
import com.inno.auth.entity.AuthUserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author sean
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AuthUserDTOConverter {
    AuthUserDTOConverter INSTANCE = Mappers.getMapper(AuthUserDTOConverter.class);
    PlannerUsersBO convertAuthUserDTOToBO(AuthUserDTO authUserDTO);

    AuthUserDTO convertBOToAuthUserDTO(PlannerUsersBO boResult);

    List<AuthUserDTO> convertBOListToAuthUserDTOList(List<PlannerUsersBO> boList);
}
